import request from "../utils/request";
import type { Admin, Token } from "./entity/admin";

export const login = (data:{
    username:string;
    password:string;
}) => {
    return request<Token>({
      method: 'POST',
      url: '/login',
      data
    })
  }